package com.dmp.common.string;

import java.util.Map;

public class MsgResetUtil {
	
	public static StringBuffer createMsgStringBuffer(String inputKeys, Map<String, Object> map) throws Exception {
		StringBuffer sb;
		sb = new StringBuffer();
		String[] inputKeysArray = inputKeys.split(",");
		for (int i = 0; i < inputKeysArray.length; i++) {
			String key = inputKeysArray[i];
			sb.append(map.get(key)).append("|");
		}
		return sb;
	}
}
